package com.dtream.nacos.controller;

import com.dtream.nacos.openfeig.RemoteClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private RemoteClient remoteClient;

    @GetMapping("test/{string}")
    public String test(@PathVariable String string) {
        return remoteClient.echo(string);
    }

    @GetMapping("getPort")
    public String getPort() {
        return remoteClient.getPort();
    }
}
